import request from '../index';

const getApi = {
    // 获取主播数据
    getAnchorData: (params) => {
        return request({
            url: '/get_anchorData',
            method: 'get',
            params
        })
    },

    // 获取CS排行榜
    getLeaderboard: (params) => {
        return request.post('/leaderboard_CS', params);
    },

    // 获取赛季排行榜
    getSeasonLeaderboard: (params) => {
        return request({
            url: '/get_seasonLeaderboard',
            method: 'get',
            params
        })
    },

    // 获取本周排行榜
    getWeekLeaderboard: (params) => {
        return request({
            url: '/get_weekLeaderboard',
            method: 'get',
            params
        })
    },

    // 获取玩家赛季数据
    getPlayerSeasonData: (params) => {
        return request({
            url: '/get_playerSeasonData',
            method: 'get',
            params
        })
    },

    getCountryClans: (params) => {
        return request({
            url: '/country',
            method: 'get',
            params
        })
    },

    // 获取升级奖励配置
    getUpgradeAwards: (params) => {
        return request({
            url: '/upgrade_award',
            method: 'get',
            params
        })
    },

    // 获取所有游戏&平台的灯牌奖励配置（不传参）
    getAllLightBoardAwards: () => {
        return request({
            url: '/lightboard_award',
            method: 'get'
        })
    }
}

export default getApi;
